<ion-view view-title="秒杀" class="myworld_sale">

	<!--描述：滑动块-->
	<ion-content scroll="false">
		<div class="row text-center font-large-my padding-0">
			<div class="col" on-tap="activeSlide(0)" ng-class="selectIndex==0?'top-activated':''">
				<img src="img/group1.png" /><br /> 活动设置
			</div>
			<div class="col" on-tap="activeSlide(1); changInput()" ng-class="selectIndex==1?'top-activated':''">
				<img src="img/group2.png" /><br /> 秒杀商品
			</div>
			<div class="col" on-tap="activeSlide(2)" ng-class="selectIndex==2?'top-activated':''">
				<img src="img/group3.png" /><br /> 秒杀对象
			</div>
		</div>

		<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">

			<!--活动设置-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
					<!--描述：下拉刷新-->
					<!--<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>-->

					<div class="list list-borderless">
						<li class="item item-input">
							活动名称：{{detail.name}}
						</li>
						<li class="item item-input">
							开始时间：{{detail.start_time}}
						</li>
						<li class="item item-input">
							结束时间：{{detail.end_time}}
						</li>
						<li class="item item-input">
							<div class="row padding-0">
								<div class="col col-25">
	           			活动图片：
	           		</div>
	           		<div class="file-show">
					<div class="add input-file" ng-repeat="img in detail.image" style="overflow: initial;">
						<!--<div style="position: absolute;margin-left: 1.5rem;margin-top: -1.0rem;font-size: 1.0rem;color: #333333;" ></div>-->
						<img style="width: 100%;height: 100%;" src="{{img.image}}">
					</div>
				</div>
							</div>
						</li>
						<li class="item item-input">
							品牌：{{detail.name}}
						</li>
						<li class="item item-input" ng-repeat="pl in detail.cat_type">
							<span ng-class="{invisible:$index>0}">已选品类：</span>{{pl.name}}
						</li>
					</div>

					<div class="button-bar padding">
						<button class="button  button-assertive">取消</button>
						<button class="button  button-positive col-offset-10" on-tap="submit()">保存</button>
					</div>

					<!--描述：当用户到达页脚或页脚附近时-->
					<!--<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>-->
				</ion-scroll>
			</ion-slide>

			<!--秒杀商品-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
					<!--描述：下拉刷新-->
<!--					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>-->
					<div class="list">
						<li class="item item-thumbnail-left item-text-wrap padding-bottom" style="padding-right: 5px;" ng-repeat="goods in dealer.goods">
							<img src="{{goods.image}}">
							<p>{{goods.goods_name}}</p>
							<p>
								价格：{{goods.price}}
								<span class="right-zhang ">数量:{{goods.count}}</span>
							</p>
							<div class="clear_zhang"></div>
							<p>
								<span class="left-zhang assertive">秒杀价：</span>
								<input type="text" class="left-zhang stable-bg shuru_zhang chang" ng-disabled="!dealer.change_price" placeholder="输入" value="{{goods.seckill_price}}" />
								<input type="text" class="right-zhang stable-bg shuru_zhang chang" ng-disabled="!dealer.change_price" placeholder="输入" value="{{goods.prize_price}}" />
								<span class="right-zhang assertive">中奖价:</span>
							</p>
							<div class="clear_zhang"></div>
							<p>限购数：{{goods.limit_buy_num}}</p>
						</li>
					</div>
					<!--描述：当用户到达页脚或页脚附近时-->
					<!--<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>-->
				</ion-scroll>
			</ion-slide>

			<!--秒杀对象-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
					<!--描述：下拉刷新-->
					<!--引入外部的页面，赞不抽取，免得数据难处理-->
					<div class="list">
								<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
									<div class="input-label">区域</div>
									<div class="input-value" ng-click="doSelectRegion()">{{scope.choose_select.region_name}}</div>
								</div>
						<li class="item item-stable item-input-inset">
							请选择加盟店
							<label class="checkbox checkbox-square padding-0 checkbox-assertive" style="position:absolute;right:10px;">
				<input type="checkbox" ng-model="scope.is_all" on-tap="select_all(scope.is_all)"/>
		</label>
						</li>
						<ion-checkbox ng-repeat="store in store" ng-model="store.checked" class="checkbox-assertive padding-left" on-tap="checked(store.store_id)">{{store.store_name}}</ion-checkbox>

					</div>

					<div class="button-bar padding">
						<button class="button  button-assertive" href="#/tab/home">取消</button>
						<button class="button  button-positive col-offset-10" on-tap="get_third()">保存</button>
					</div>
					<div class="list list-borderless">
						<li class="item padding-10 text-center" style="color: black;">
							已选择授权中心
						</li>
						<div ng-repeat="region in show_region">
							<hr />
							<li class="item item-input">
								<span>区域：</span> {{region.region_name}}<i class="icon ion-minus-circled assertive font-1rem-my" on-tap="delete_region($index)"></i>
							</li>
							<li class="item item-input item-icon-right" ng-repeat="store in region.store">
								<span ng-class="{invisible:$index>0}">授权中心名称：</span>{{store.store_name}}<i class="icon ion-minus-circled assertive font-1rem-my" on-tap="delete_store(region.region_name,$index)"></i>
							</li>
							<!--<li class="item item-input">
				       	   	  	是否允许改价：{{store.change_price}}
				       	   </li>-->
						</div>
					</div>

					<!--描述：当用户到达页脚或页脚附近时-->
					<!--<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>-->
				</ion-scroll>
			</ion-slide>

		</ion-slide-box>
	</ion-content>
</ion-view>